<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
    xmlns:s="http://jboss.com/products/seam/taglib"
    xmlns:ui="http://java.sun.com/jsf/facelets"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:rich="http://richfaces.org/rich"
    template="layout/template.xhtml">

<ui:define name="body">

    <h:form id="tarefapredecessoraSearch" styleClass="edit">

        <rich:simpleTogglePanel label="Tarefapredecessora Search Filter" switchType="ajax">

            <s:decorate template="layout/display.xhtml">
                <ui:define name="label">Match</ui:define>
                <h:selectOneRadio id="logic" value="#{tarefapredecessoraList.restrictionLogicOperator}" styleClass="radio">
                    <f:selectItem itemLabel="All" itemValue="and"/>
                    <f:selectItem itemLabel="Any" itemValue="or"/>
                </h:selectOneRadio>
            </s:decorate>

        </rich:simpleTogglePanel>

        <div class="actionButtons">
            <h:commandButton id="search" value="Search" action="/TarefapredecessoraList.xhtml"/>
            <s:button id="reset" value="Reset" includePageParams="false"/>
        </div>

    </h:form>

    <rich:panel>
        <f:facet name="header">Tarefapredecessora Search Results (#{empty tarefapredecessoraList.resultList ? 0 : (tarefapredecessoraList.paginated ? tarefapredecessoraList.resultCount : tarefapredecessoraList.resultList.size)})</f:facet>
    <div class="results" id="tarefapredecessoraList">

    <h:outputText value="The tarefapredecessora search returned no results."
               rendered="#{empty tarefapredecessoraList.resultList}"/>

    <rich:dataTable id="tarefapredecessoraList"
                var="_tarefapredecessora"
              value="#{tarefapredecessoraList.resultList}"
           rendered="#{not empty tarefapredecessoraList.resultList}">
        <h:column>
            <f:facet name="header">
                <ui:include src="layout/sort.xhtml">
                    <ui:param name="entityList" value="#{tarefapredecessoraList}"/>
                    <ui:param name="propertyLabel" value="Tarefapredecessoraid"/>
                    <ui:param name="propertyPath" value="tarefapredecessora.id.tarefapredecessoraid"/>
                </ui:include>
            </f:facet>
            <h:outputText value="#{_tarefapredecessora.id.tarefapredecessoraid}"/>
        </h:column>
        <h:column>
            <f:facet name="header">
                <ui:include src="layout/sort.xhtml">
                    <ui:param name="entityList" value="#{tarefapredecessoraList}"/>
                    <ui:param name="propertyLabel" value="Tarefaid"/>
                    <ui:param name="propertyPath" value="tarefapredecessora.id.tarefaid"/>
                </ui:include>
            </f:facet>
            <h:outputText value="#{_tarefapredecessora.id.tarefaid}"/>
        </h:column>
        <h:column>
            <f:facet name="header">
                <ui:include src="layout/sort.xhtml">
                    <ui:param name="entityList" value="#{tarefapredecessoraList}"/>
                    <ui:param name="propertyLabel" value="Tarefa by tarefapredecessoraid id"/>
                    <ui:param name="propertyPath" value="tarefapredecessora.tarefaByTarefapredecessoraid.id"/>
                </ui:include>
            </f:facet>
            <h:outputText value="#{_tarefapredecessora.tarefaByTarefapredecessoraid.id}"/>
        </h:column>
        <h:column>
            <f:facet name="header">
                <ui:include src="layout/sort.xhtml">
                    <ui:param name="entityList" value="#{tarefapredecessoraList}"/>
                    <ui:param name="propertyLabel" value="Tarefa by tarefaid id"/>
                    <ui:param name="propertyPath" value="tarefapredecessora.tarefaByTarefaid.id"/>
                </ui:include>
            </f:facet>
            <h:outputText value="#{_tarefapredecessora.tarefaByTarefaid.id}"/>
        </h:column>
        <rich:column styleClass="action">
            <f:facet name="header">Action</f:facet>
            <s:link view="/#{empty from ? 'Tarefapredecessora' : from}.xhtml"
                   value="#{empty from ? 'View' : 'Select'}"
             propagation="#{empty from ? 'none' : 'default'}"
                      id="tarefapredecessoraViewId">
                <f:param name="tarefapredecessoraTarefapredecessoraid"
                        value="#{_tarefapredecessora.id.tarefapredecessoraid}"/>
                <f:param name="tarefapredecessoraTarefaid"
                        value="#{_tarefapredecessora.id.tarefaid}"/>
            </s:link>
            #{' '}
            <s:link view="/TarefapredecessoraEdit.xhtml"
                   value="Edit"
             propagation="none"
                      id="tarefapredecessoraEdit"
                rendered="#{empty from}">
                <f:param name="tarefapredecessoraTarefapredecessoraid"
                        value="#{_tarefapredecessora.id.tarefapredecessoraid}"/>
                <f:param name="tarefapredecessoraTarefaid"
                        value="#{_tarefapredecessora.id.tarefaid}"/>
            </s:link>
        </rich:column>
    </rich:dataTable>

    </div>
    </rich:panel>

    <div class="tableControl">

        <s:link view="/TarefapredecessoraList.xhtml"
            rendered="#{tarefapredecessoraList.previousExists}"
               value="#{messages.left}#{messages.left} First Page"
                  id="firstPage">
          <f:param name="firstResult" value="0"/>
        </s:link>

        <s:link view="/TarefapredecessoraList.xhtml"
            rendered="#{tarefapredecessoraList.previousExists}"
               value="#{messages.left} Previous Page"
                  id="previousPage">
            <f:param name="firstResult"
                    value="#{tarefapredecessoraList.previousFirstResult}"/>
        </s:link>

        <s:link view="/TarefapredecessoraList.xhtml"
            rendered="#{tarefapredecessoraList.nextExists}"
               value="Next Page #{messages.right}"
                  id="nextPage">
            <f:param name="firstResult"
                    value="#{tarefapredecessoraList.nextFirstResult}"/>
        </s:link>

        <s:link view="/TarefapredecessoraList.xhtml"
            rendered="#{tarefapredecessoraList.nextExists}"
               value="Last Page #{messages.right}#{messages.right}"
                  id="lastPage">
            <f:param name="firstResult"
                    value="#{tarefapredecessoraList.lastFirstResult}"/>
        </s:link>

    </div>

    <s:div styleClass="actionButtons" rendered="#{empty from}">
        <s:button view="/TarefapredecessoraEdit.xhtml"
                    id="create"
           propagation="none"
                 value="Create tarefapredecessora">
            <f:param name="tarefapredecessoraTarefapredecessoraid"/>
            <f:param name="tarefapredecessoraTarefaid"/>
        </s:button>
    </s:div>

</ui:define>

</ui:composition>
